package com.example.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.entity.Order;
import com.example.mapper.OrderMapper;
import com.example.service.OrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.time.LocalDate;
import java.util.List;
import java.util.Map;

@Service
public class OrderServiceImpl extends ServiceImpl<OrderMapper, Order> implements OrderService {
    @Autowired
    private OrderMapper orderMapper;

    @Override
    public List<Map<String, Object>> everyday(LocalDate startDate, LocalDate endDate) {
        return orderMapper.everyday(startDate, endDate);
    }

    @Override
    public List<Map<String, Object>> everydept(LocalDate startDate, LocalDate endDate) {
        return orderMapper.everydept(startDate, endDate);
    }

    @Override
    public List<Map<String, Object>> everytype(LocalDate startDate, LocalDate endDate) {
        return orderMapper.everytype(startDate, endDate);
    }
}
